<?php

class Social_User_Friend extends Social_Base
{
    public function init()
    {
        $this->setTableName('user_friends');
        $this->setPrimaryKey('friend_id');
    }

    public function hasFriend($userId, $friendId)
    {
        return $this->exists(array('user_id' => $userId, 'friend_id' => $friendId));
    }
}
